package com.alpha.eceasy.mall.api.entity;

import com.alpha.eceasy.extension.BaseFormInfo;
import com.alpha.eceasy.mall.api.handler.ListStringHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 聊天会话详情表
 * </p>
 *
 * @author huangpengfei
 * @since 2024-05-15
 */
@Getter
@Setter
@TableName(value = "mall_im_detail",autoResultMap = true)
@Schema(name = "MallImDetail", description = "聊天会话详情表")
public class MallImDetail extends BaseFormInfo<MallImDetail> {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "聊天会话guid")
    private String mallImGuid;

    @Schema(description = "发送方")
    private String sender;

    @Schema(description = "内容")
    @TableField(typeHandler = ListStringHandler.class)
    private List<String> contentList;
}
